package com.zzs.library.mbg.model;

import java.util.ArrayList;
import java.util.List;

public class BookExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BookExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andAuthIsNull() {
            addCriterion("auth is null");
            return (Criteria) this;
        }

        public Criteria andAuthIsNotNull() {
            addCriterion("auth is not null");
            return (Criteria) this;
        }

        public Criteria andAuthEqualTo(String value) {
            addCriterion("auth =", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthNotEqualTo(String value) {
            addCriterion("auth <>", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthGreaterThan(String value) {
            addCriterion("auth >", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthGreaterThanOrEqualTo(String value) {
            addCriterion("auth >=", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthLessThan(String value) {
            addCriterion("auth <", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthLessThanOrEqualTo(String value) {
            addCriterion("auth <=", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthLike(String value) {
            addCriterion("auth like", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthNotLike(String value) {
            addCriterion("auth not like", value, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthIn(List<String> values) {
            addCriterion("auth in", values, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthNotIn(List<String> values) {
            addCriterion("auth not in", values, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthBetween(String value1, String value2) {
            addCriterion("auth between", value1, value2, "auth");
            return (Criteria) this;
        }

        public Criteria andAuthNotBetween(String value1, String value2) {
            addCriterion("auth not between", value1, value2, "auth");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadIsNull() {
            addCriterion("baidudownload is null");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadIsNotNull() {
            addCriterion("baidudownload is not null");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadEqualTo(String value) {
            addCriterion("baidudownload =", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadNotEqualTo(String value) {
            addCriterion("baidudownload <>", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadGreaterThan(String value) {
            addCriterion("baidudownload >", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadGreaterThanOrEqualTo(String value) {
            addCriterion("baidudownload >=", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadLessThan(String value) {
            addCriterion("baidudownload <", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadLessThanOrEqualTo(String value) {
            addCriterion("baidudownload <=", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadLike(String value) {
            addCriterion("baidudownload like", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadNotLike(String value) {
            addCriterion("baidudownload not like", value, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadIn(List<String> values) {
            addCriterion("baidudownload in", values, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadNotIn(List<String> values) {
            addCriterion("baidudownload not in", values, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadBetween(String value1, String value2) {
            addCriterion("baidudownload between", value1, value2, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andBaidudownloadNotBetween(String value1, String value2) {
            addCriterion("baidudownload not between", value1, value2, "baidudownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadIsNull() {
            addCriterion("tenxundownload is null");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadIsNotNull() {
            addCriterion("tenxundownload is not null");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadEqualTo(String value) {
            addCriterion("tenxundownload =", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadNotEqualTo(String value) {
            addCriterion("tenxundownload <>", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadGreaterThan(String value) {
            addCriterion("tenxundownload >", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadGreaterThanOrEqualTo(String value) {
            addCriterion("tenxundownload >=", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadLessThan(String value) {
            addCriterion("tenxundownload <", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadLessThanOrEqualTo(String value) {
            addCriterion("tenxundownload <=", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadLike(String value) {
            addCriterion("tenxundownload like", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadNotLike(String value) {
            addCriterion("tenxundownload not like", value, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadIn(List<String> values) {
            addCriterion("tenxundownload in", values, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadNotIn(List<String> values) {
            addCriterion("tenxundownload not in", values, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadBetween(String value1, String value2) {
            addCriterion("tenxundownload between", value1, value2, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andTenxundownloadNotBetween(String value1, String value2) {
            addCriterion("tenxundownload not between", value1, value2, "tenxundownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadIsNull() {
            addCriterion("chenyudownload is null");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadIsNotNull() {
            addCriterion("chenyudownload is not null");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadEqualTo(String value) {
            addCriterion("chenyudownload =", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadNotEqualTo(String value) {
            addCriterion("chenyudownload <>", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadGreaterThan(String value) {
            addCriterion("chenyudownload >", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadGreaterThanOrEqualTo(String value) {
            addCriterion("chenyudownload >=", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadLessThan(String value) {
            addCriterion("chenyudownload <", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadLessThanOrEqualTo(String value) {
            addCriterion("chenyudownload <=", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadLike(String value) {
            addCriterion("chenyudownload like", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadNotLike(String value) {
            addCriterion("chenyudownload not like", value, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadIn(List<String> values) {
            addCriterion("chenyudownload in", values, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadNotIn(List<String> values) {
            addCriterion("chenyudownload not in", values, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadBetween(String value1, String value2) {
            addCriterion("chenyudownload between", value1, value2, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andChenyudownloadNotBetween(String value1, String value2) {
            addCriterion("chenyudownload not between", value1, value2, "chenyudownload");
            return (Criteria) this;
        }

        public Criteria andExtractionIsNull() {
            addCriterion("extraction is null");
            return (Criteria) this;
        }

        public Criteria andExtractionIsNotNull() {
            addCriterion("extraction is not null");
            return (Criteria) this;
        }

        public Criteria andExtractionEqualTo(String value) {
            addCriterion("extraction =", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionNotEqualTo(String value) {
            addCriterion("extraction <>", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionGreaterThan(String value) {
            addCriterion("extraction >", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionGreaterThanOrEqualTo(String value) {
            addCriterion("extraction >=", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionLessThan(String value) {
            addCriterion("extraction <", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionLessThanOrEqualTo(String value) {
            addCriterion("extraction <=", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionLike(String value) {
            addCriterion("extraction like", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionNotLike(String value) {
            addCriterion("extraction not like", value, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionIn(List<String> values) {
            addCriterion("extraction in", values, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionNotIn(List<String> values) {
            addCriterion("extraction not in", values, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionBetween(String value1, String value2) {
            addCriterion("extraction between", value1, value2, "extraction");
            return (Criteria) this;
        }

        public Criteria andExtractionNotBetween(String value1, String value2) {
            addCriterion("extraction not between", value1, value2, "extraction");
            return (Criteria) this;
        }

        public Criteria andBriefIsNull() {
            addCriterion("brief is null");
            return (Criteria) this;
        }

        public Criteria andBriefIsNotNull() {
            addCriterion("brief is not null");
            return (Criteria) this;
        }

        public Criteria andBriefEqualTo(String value) {
            addCriterion("brief =", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotEqualTo(String value) {
            addCriterion("brief <>", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefGreaterThan(String value) {
            addCriterion("brief >", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefGreaterThanOrEqualTo(String value) {
            addCriterion("brief >=", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefLessThan(String value) {
            addCriterion("brief <", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefLessThanOrEqualTo(String value) {
            addCriterion("brief <=", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefLike(String value) {
            addCriterion("brief like", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotLike(String value) {
            addCriterion("brief not like", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefIn(List<String> values) {
            addCriterion("brief in", values, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotIn(List<String> values) {
            addCriterion("brief not in", values, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefBetween(String value1, String value2) {
            addCriterion("brief between", value1, value2, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotBetween(String value1, String value2) {
            addCriterion("brief not between", value1, value2, "brief");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}